const greeter = require('./Greater.js'); //和main.js在同一目录
document.querySelector("#root").appendChild(greeter());
